﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.SessionState;
using ZX.CRM.Bussiness;

namespace ZXMOBI.Proc
{
    /// <summary>
    /// login 的摘要说明
    /// </summary>
    public class login : IHttpHandler, IReadOnlySessionState
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            GetUser duser = new GetUser();
            string back = duser.CheckUser(context.Request["uname"], context.Request["upass"]);
            if (back != "")
            {
                context.Response.Write(back);
            }
            else
                context.Response.Write("0");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}